#include "gdn/Music.h"

namespace gdn
{
	bool Music::LoadFromFile( const std::string& filename )
	{
		return music.OpenFromFile( filename );
	}

	void Music::SetLoop( bool theLoop )
	{
		music.SetLoop( theLoop );
	}

	bool Music::GetLoop() const
	{
		return music.GetLoop();
	}

	void Music::SetOffset( float theOffset ) // I was reading the SFML 1.6 documentation when I made this function name. :P
	{
		music.SetPlayingOffset( theOffset );
	}

	float Music::GetOffset() const
	{
		return music.GetPlayingOffset();
	}

	void Music::SetVolume( float theVolume )
	{
		music.SetVolume( theVolume );
	}

	float Music::GetVolume() const
	{
		return music.GetVolume();
	}

	void Music::Play()
	{
		music.Play();
	}

	void Music::Pause()
	{
		music.Pause();
	}

	void Music::Stop()
	{
		music.Stop();
	}

	bool Music::IsPlaying() const
	{
		return ( music.GetStatus() == sf::Music::Playing );
	}
}
